home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000096_news@columbia.edu _Sun Mar 5 16:42:42 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA09107
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 5 Mar 2000 16:42:42 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id QAA00362
  7.     for kermit.misc@watsun.cc.columbia.edu; Sun, 5 Mar 2000 16:41:59 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Case Study #19: An Easy Way to Get Files from IKSD
  11. Date: 5 Mar 2000 21:41:57 GMT
  12. Organization: Columbia University
  13. Message-ID: <89ukb5$b8$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16.  
  17. Getting files from IKSD (an Internet Kermit Service Daemon) is like
  18. getting them from an FTP server.  First you have to make the connection,
  19. then you have to log in, then you have to change to the desired directory,
  20. then you request the desired file(s), and finally you must say "bye" to
  21. FTP.
  22.  
  23. The Web has simplified this process by introducing the FTP URL:
  24.  
  25.   ftp://host/path/filename
  26.  
  27. When you click on such a URL in your browser (or for that matter, in K95),
  28. it gets the file for you with no further ado.  The browser takes care of
  29. making the connection, logging you in as "anonymous", asking for the
  30. file(s), and signing off from FTP.
  31.  
  32. Wouldn't it be nice if there were an IKSD URL to do the same thing for
  33. IKSD?  Maybe there will be some day.  In the meantime, here's a script for
  34. C-Kermit 7.0 that does the same thing:
  35.  
  36.   ftp://kermit.columbia.edu/kermit/scripts/ckermit/iksget
  37.  
  38. If you copy this script to your computer, save it in your PATH, and give
  39. it execute permission, then you can type:
  40.  
  41.   iksget iksd://host/path/filename
  42.  
  43. (replacing "host", "path", and "filename" appropriately) any time you want
  44. to get a file from an Internet Kermit Server on any Internet host, such as
  45. the one at Columbia University:
  46.  
  47.   iksget iksd://kermit.columbia.edu/kermit/utils/xxu.c
  48.  
  49. IKSD can be a handy alternative to FTP, which sometimes doesn't work
  50. because of firewalls (since it uses a random second TCP port for its data
  51. connection).  Plus:
  52.  
  53.  . For cross-platform transfers, text-file record-format and character-set
  54.    conversions are done automatically (if your client is C-Kermit, K95, or
  55.    MS-DOS Kermit).
  56.  
  57.  . Multiple files can be requested with wildcards (many FTP URL
  58.    implementations don't allow this).
  59.  
  60. Here's an example that extracts the UNIX C-Kermit sources and makefile
  61. from among the many files in the kermit/f directory on the Kermit Project
  62. server:
  63.  
  64.   iksget "iksd://kermit.columbia.edu/kermit/f/{makefile,ck[cuw]*.[cwh]}"
  65.  
  66. (The argument has to be quoted to inhibit shell expansion.)
  67.  
  68. The wildcard notation, {makefile,ck[cuw]*.[cwh]}, is explained in Section
  69. 4.9.1 of the Kermit 7.0 Update Notes:
  70.  
  71.   http://www.columbia.edu/kermit/ckermit2.html#x4.9.1
  72.  
  73. IKSGET is a "Kerbang script", meaning you can use it like a shell or Perl
  74. script.  Kerbang scripts were discussed in Case Study #2:
  75.  
  76.   http://www.columbia.edu/kermit/case02.html
  77.  
  78. If you haven't looked into Internet Kermit Service yet, it was introduced
  79. in Case Study #7:
  80.  
  81.   http://www.columbia.edu/kermit/case07.html
  82.  
  83. - Frank